how to build twitter with java and react